<li class="item">
<?php 
	$level_w = array(
		'1'=> '',
		'2'=> 'w_20',
		'3'=> 'w_40',
	);
	$label = array(
			'1'=> '添加二级分类',
			'2'=> '添加三级分类',
			'3'=> '添加四级分类',
	);
	//级别
	if($data->znc_patentid==0){
		$level = 1;
	}elseif($data->znc_topid==0){
		$level = 2;
	}else{
		$level = 3;
	}
	//子分类
	$child=new NewsCat('search');
	$child->unsetAttributes();  // clear any default values
	$child->znc_patentid = $data->znc_id;
	
?>
	<ul class="c_f p_5 cate">
		<li class="w_300 f_l t_l">
			<div class="<?php echo $level_w[$level]; ?> f_l">&nbsp;</div>
			<span class="mem_ico fold ico_fold"></span>
			<span>&nbsp;
				<?php echo CHtml::textfield('NewsCat[znc_title][]',$data->znc_title,array('class'=>'t_ipt w_170')); ?>
			</span>	
		</li>
		<li class="w_40 f_l t_c">&nbsp;
		</li>
		<li class="w_180 f_l t_c c">&nbsp;
			<div class="<?php echo $level_w[$level]; ?> f_l">&nbsp;</div>
			<a class="mem_ico uplist ord_7" title="向上移动" href="javascript:">&nbsp;</a>
			<?php echo CHtml::hiddenfield('NewsCat[znc_id][]', CHtml::encode($data->znc_id)); ?>
			<a class="mem_ico downlist ord_8" title="向下移动" href="javascript:">&nbsp;</a>
		</li>
		<li class="w_180 f_l t_c">&nbsp;
			<?php echo CHtml::link('信息列表', array($this->pre_module_url.'/news/admin/', 'News[znc_id]'=>$data->znc_id),array('class'=>'c_666')); ?>
		</li>
		<?php if( $data->znc_id > '10') {?>
		<li class="w_120 f_l t_c">&nbsp;
			<?php echo CHtml::link('删除','javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm("/manage/newsCat/delete/id/'.$data->znc_id.'","你确定要删除这条信息吗？")')); ?>
		</li>
		<?php }else{?>
		<li class="w_120 f_l t_c">&nbsp;</li>
		<?php }?>
	</ul>
	<div class = "child d_n">
		<?php  $this->widget('zii.widgets.CListView', array(
			'dataProvider'=>$child->search(),
			'itemView'=>'_view',
			'emptyText'=>"",
			'enablePagination'=>'false',
			'template'=>'{items}',
			'itemsCssClass'=>'',
			'summaryText'=>'',
			'tagName'=>'ul',
			'htmlOptions'=>array('class'=>'type_list')
		)); ?>
		<?php if($level<3){?>
		<div class="cate_addbtn">
			<div class="w_20 f_l">&nbsp;</div>
			<div class="<?php echo $level_w[$level]; ?> f_l">&nbsp;</div>
			
			<span class="mem_bgx link_btn mr5">
			 	<a class="mem_bgx link_btn click" href="javascript:" onclick="addCate('<?php echo  CHtml::encode($data->znc_id); ?>')" title=""><?php echo $label[$level]; ?></a>
			 	<b class="mem_bgx left"></b><b class="mem_bgx right"></b>
			 </span>
		 </div>
		 <?php } ?>
	 </div>
</li>